using System.Runtime.Serialization;

namespace SharedObjects
{
	[DataContract]
	[ReferencedBy(typeof(ComputerSystem))]
	[ReferencedBy(typeof(ComputerSystemLog))]
	public class NetworkAddress : EntityBase
	{
		[DataMember]
		public byte ClassA { get; set; }
		[DataMember]
		public byte ClassB { get; set; }
		[DataMember]
		public byte ClassC { get; set; }
		[DataMember]
		public byte ClassD { get; set; }

		public override string ToString()
		{
			return string.Format("{0}.{1}.{2}.{3}", ClassA, ClassB, ClassC, ClassD);
		}
	}
}